﻿using Architecture.Domian.Common;
using Architecture.Domian.DTO;
using Architecture.Domian.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Architecture.Domain.Services.Interface
{
    public interface IUserService
    {
        Task<int> UserInsert(UserInfo user);
        Task<PageResult<UserInfoDTO>> GetPage(int size, int index);
        Task<int> LogicDelete(int userId);
        Task<int> UpdateUserInfo(UserInfo user);
        Task<UserInfo> GetUserInfoByUserId(int userId);
        Task<int> BatchInsertData(List<UserInfo> userInfos);
        Task<CodeDto> Login(UserDTO user);
    }
}
